package com.paishen.common;

import android.content.Context;

import com.paishen.common.util.LogUtil;

/**
 * Created by peng on 2016/01/16.
 */
public class LibCommon {

    private static Context context;

    public static final void init(Context ctx) {
        if (ctx == null) {
            throw new NullPointerException("lib common init ctx is null");
        }
        context = ctx.getApplicationContext();
    }

    public static Context appContext() {
        return context;
    }

    public static void setDebugMode(boolean debug, String tag) {
        LogUtil.DEBUG = debug;
        LogUtil.TAG_DEBUG = tag;
    }
}
